package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 项目类型对象 jiajia_item_type
 *
 * @author ruoyi
 * @date 2024-05-08
 */
public class JiajiaItemType extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 项目类型名称
     */
    @Excel(name = "项目类型名称")
    private String name;

    /**
     * 项目类型编码
     */
    @Excel(name = "项目类型编码")
    private String code;

    /**
     * 图片路径
     */
    @Excel(name = "图片路径")
    private String photo;

    /**
     * 大类型id
     */
    @Excel(name = "大类型id")
    private Long bigTypeId;

    /**
     * 是否删除0否1是
     */
    @Excel(name = "是否删除0否1是")
    private Integer del;

    /////////////不在数据库///////////
    /**
     * 后台页面回显用,类型是否选中
     */
    private Boolean selected = false;

    /**
     * 是否为热门0否1是
     */
    private Integer hot;

    public Long getBigTypeId() {
        return bigTypeId;
    }

    public void setBigTypeId(Long bigTypeId) {
        this.bigTypeId = bigTypeId;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    public Integer getDel() {
        return del;
    }

    public Boolean getSelected() {
        return selected;
    }

    public void setSelected(Boolean selected) {
        this.selected = selected;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public Integer getHot() {
        return hot;
    }

    public void setHot(Integer hot) {
        this.hot = hot;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("code", getCode())
                .append("del", getDel())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("photo", getPhoto())
                .append("bigTypeId", getBigTypeId())
                .append("hot", getHot())
                .toString();
    }
}
